import request from "@/utils/request";

// 获取商品
export const getGoodsApi = (params:any):Promise<any>=>request.get(`/goods/getgoods?pageSize=${params.pageSize}&&pageNum=${params.pageNum}&&belongToShop=${params.belongToShop}`)
// 添加商品
export const addGoodsApi = (params:any):Promise<Res>=>request.post('/goods/addgoods',params)
// 修改商品
export const updateGoodsApi = (params:any):Promise<Res>=>request.post('/goods/updategoods',params)
// 删除商品
export const delGoodsApi = (params:any):Promise<Res>=>request.post('/goods/delgoods',params)
// 模糊查询商品
export const searchGoodsApi = (params:any):Promise<any>=>request.post('/goods/searchgoods',params)